package com.example.demo.config.response;

/**
 * @author
 * 状态码 枚举
 */
public enum ResultCode {

    /**
     * 成功
     */
    SUCCESS(0, "成功"),

    /**
     * 失败
     */
    FAILURE(-1, "失败"),

    /**
     * 参数
     */
    PARAM_IS_INVALID(1001, "参数无效"),
    PARAM_IS_BLANK(1002, "参数为空"),

    /**
     *
     */
    USER_NOT_LOGIN_IN(2001, "用户未登录，访问的路径需要验证，请登录"),

    ;

    /**
     * 状态码
     */
    private Integer code;
    /**
     * 提示信息
     */
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
